/*
 * @Author: your name
 * @Date: 2021-01-04 09:50:30
 * @LastEditTime: 2021-05-18 21:05:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \yellow-member-admin\src\main.js
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import "mavon-editor/dist/css/index.css"; //富文本编辑器样式
import mavonEditor from "mavon-editor";
// import "element-ui/lib/theme-chalk/index.css"; // 默认主题
// import "./assets/css/theme-green/index.css"; // 浅绿色主题
// import "./assets/css/theme/01/index.css";
// import "./assets/css/theme/02/index.css";
import "./assets/css/theme/03/index.css";
import "./layout/directives";
import "./assets/directive";
// import 'babel-polyfill';
import api from "@/api"; //接口挂载
import "./utils/util";
import "./assets/filter";
import "./components"; //全局组件注册
import Avue from "@smallwei/avue";
import "@smallwei/avue/lib/index.css";
import store from "./store";
import "./plugin/vant"; //引入vant
Vue.config.productionTip = false;
Vue.use(ElementUI, { size: "small" }).use(mavonEditor);
Vue.use(Avue);
Vue.prototype.$api = api;

window.app = new Vue({
  store,
  router,
  render: h => h(App)
}).$mount("#app");
